{% extends "base.html" %}
{% block content %}
<h1>Register</h1>

{% if registered %}
Bookings says: <strong>thank you for registering!</strong>
<a href="/accounts/">Return to the homepage.</a><br />
{% else %}
<strong>register here!</strong><br />

<form id="user_form" method="post" action="/bookings/register/">
    {% csrf_token %}
    {{ user_form.as_p }}
    <input type="submit" name="submit" value="Register" />
</form>
{% endif %}
{% endblock %}